//
//  PlateNumberChangeAlterViewController.m
//  ICrEAM
//
//  Created by Leona on 2017/4/19.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "PlateNumberChangeAlterViewController.h"

@interface PlateNumberChangeAlterViewController ()

@end

@implementation PlateNumberChangeAlterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.VINtextField.text = self.vinStr;
    self.originalCarNumberTextField.text = self.oldCarNumberStr;
    self.neoCarNumberTextField.text = self.neoCarNumberStr;
    
    
    //添加的是背景view，并不是自身的view
    [self.blankView addSubview:self.view];
    
}
- (UIView *)blankView{
    if (!_blankView) {
        _blankView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];
        _blankView.backgroundColor = [UIColor colorWithHex:BorderColor_Gray_Hex andAlpha:0.8];
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideAllView)];
        [_blankView addGestureRecognizer:tap];
        
    }
    return _blankView;
}
-(void)hideAllView{
    [self.blankView removeFromSuperview];
}



//- (IBAction)yesAction:(UIButton *)sender {
//    [self hideAllView];
//}
//
//- (IBAction)noButton:(UIButton *)sender {
//    [[NSNotificationCenter defaultCenter] postNotificationName:@"noActionNotification" object:self userInfo:@{@"type":@"no"}];
//    
//    [self hideAllView];
//}
@end
